package com.hehua.BridgePattern;

public class BridgeClient {
    public static void main(String[] args) {
        Transmission auto = new Auto();
        AbstractCar bmwCar = new BMWCar();
        bmwCar.setTransmission(auto);
        bmwCar.run();
        System.out.println("==============================");
        Transmission manual = new Manual();
        AbstractCar benz = new BENZCar();
        benz.setTransmission(manual);
        benz.run();
    }
}
